//
//  LYFMessageTableViewController.swift
//  weibohhhh
//
//  Created by fersh on 16/1/2.
//  Copyright © 2016年 fersh. All rights reserved.
//

import UIKit

class LYFMessageTableViewController: LYFVistorTableViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        if userVistor == false {
            vistorView.setupVistorInfo("visitordiscover_image_message", messeageText: "登录后，别人评论你的微博，发给你的消息，都会在这里收到通知")
            return
        }
        setupUI()
    }
 
    private func setupUI(){
        
        navigationItem.rightBarButtonItem = UIBarButtonItem( titel: "发现群", target: self, action: "findGroup")
    }
    /**
     发现群的点击方法
     */
    @objc private func findGroup(){
        
        let vc = LYFViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
    
    
}


